package com.market.controller.admin;


import com.market.bean.common.BaseRespVo;
import com.market.bean.common.CommonData;
import com.market.service.admin.AdminRegionListService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author:WalterChan
 * @Decription:AdminRegionListController
 * @Date Created in 2022-12-29-16:23
 */
@RestController
public class AdminRegionListController {
    @Autowired
    AdminRegionListService adminRegionListService;

    @RequestMapping("admin/region/list")
    public BaseRespVo list( ){
        CommonData data =adminRegionListService.list();

        return BaseRespVo.ok(data);

    }
}
